package com.xbfinance.manager.pojo.dto;

public class PageParam {
    private  Integer page;
    private  Integer limit;
    private  Long aid;

    public Long getAid() {
        return aid;
    }

    public void setAid(Long aid) {
        this.aid = aid;
    }
    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }
    public Integer getOffset(){
        return (page-1)*limit;
    }

    @Override
    public String toString() {
        return "PageParam{" +
                "page=" + page +
                ", limit=" + limit +
                '}';
    }
}
